<?php

namespace app\reporting\controller;
use  app\common\controller\DBase;
use app\common\controller\PCBase;
use app\reporting\logic\ReportVisitLogic;

class ReportHistory extends PCBase
{

    /**
     * @desc   获取报告信息
     * @author luckyXiong
     * @date   2024-11-05
     */
    public function getHistoryList(){
        $params     = $this->request->post();
        $adminId    = $this->getAdminId();
        $groupId    = $this->getAdminGroupId();
        $params['groupId'] = $groupId;
        $params['adminId'] = $adminId;
        return  (new ReportVisitLogic())->getHistoryList($params);
    }


    /**
     * @desc   编辑报告信息
     * @author luckyXiong
     * @date   2024-11-05
     */
    public function editHistoryList(){
        $params     = $this->request->post();
        return  (new ReportVisitLogic())->editHistoryList($params);
    }



    /**
     * @desc   导出信息
     * @author luckyXiong
     * @date   2024-11-06
     */
    public function exportHistoryList(){
        $params   = $this->request->post();
        (new ReportVisitLogic())->exportHistoryList($params);
        return  $this->jsonMessage(200, true, '操作成功',null);
    }




}